const Db = require('../db/Db')

class CommonModel {
  // 修改文章
  async update(tableName, data, whereJson) {
    const res = await Db.update(tableName, data, whereJson)
    return res
  }
 
}

module.exports = new CommonModel();